﻿using System;
using System.ComponentModel.DataAnnotations;

namespace QBWeb.Models.TestFolder
{
    public class TestPaperTb
    {
        public int Id { get; set; }

        /// <summary>
        /// 试卷名称
        /// </summary>
        [Display(Name="试卷名称")]
        public string TestName { get; set; }

        /// <summary>
        /// 作者
        /// </summary>
        [Display(Name="作者")]
        public string Creator { get; set; }

        /// <summary>
        /// 试卷创建时间
        /// </summary>
        [Display(Name ="创建时间")]
        public DateTime? CreateTime { get; set; }   //加个问号可以允许时间字段为null

        /// <summary>
        /// 试卷修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        public DateTime? ModifyTime { get; set; }
        
        public Issue Issue { get; set; }
        public int IssueId { get; set; }

        /// <summary>
        /// 课程Id
        /// </summary>
        public int CurriculaId { get; set; }
    }
}